<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=1200, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>click me</button>
    <script>
        const oButton = document.querySelector('button')

        const callback = function(e) {
            console.log(`${e.target}`)
            e.preventDefault();
        }

        oButton.addEventListener('click', callback)
    </script>
</body>
</html>